import axios from '@/utils/axios'
import moment from "moment";

export function getOkrRuleList(params) {
  return axios({
    url: '/OkrRule/list',
    method: 'post',
    data: params
  })
}

export function addOkrRule(params) {
    return axios({
      url: '/OkrRule/add',
      method: 'post',
      data: params
    })
  }

  export function getKeyList(params) {
    return axios({
      url: '/OkrRule/getKey',
      method: 'post',
      data: params
    })
  }

  export function updateOkrRule(params) {
    return axios({
      url: '/OkrRule/update',
      method: 'post',
      data: params
    })
  }

  export function deleteOkrRule(params) {
    return axios({
      url: '/OkrRule/delete',
      method: 'post',
      data: params
    })
  }

  export function getPastList(params) {
    return axios({
      url: '/OkrRule/pastList',
      method: 'post',
      data: params
    })
  }

  export function getEmpPositionOkr(params) {
    return axios({
      url: '/OkrRule/getEmpPositionOkr',
      method: 'post',
      data: params
    })
  }

  export function getOkrRulePage(params) {
    return axios({
      url: '/OkrRule/page',
      method: 'get',
      data: params
    })
  }

